package com.chaihu.intf.admin.menugroup;

import com.chaihu.bean.in.admin.menugroup.QueryMenuGroupsIn;
import com.chaihu.bean.out.admin.menugroup.QueryMenuGroupsOut;
import com.chaihu.bean.result.ResponseResult;
import com.chaihu.config.feign.FeignConfiguration;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@FeignClient(name = "admin-service", configuration = {FeignConfiguration.class})
@RequestMapping("/admin")
@Api(tags = "查询菜单组信息")
public interface ListMenuGroupsService {

    @ApiOperation(value = "查询菜单信息")
    @PostMapping("/listMenuGroups")
    ResponseResult<List<QueryMenuGroupsOut>> listMenuGroups(@RequestBody QueryMenuGroupsIn in);
}
